/**
 * -----------------------------------
 * Copyright (c) 2021-2023
 * All rights reserved, Designed By www.linfeng.tech
 * 林风社交论坛商业版本请务必保留此注释头信息
 * 商业版授权联系技术客服	 QQ:  3582996245
 * 严禁分享、盗用、转卖源码或非法牟利！
 * 版权所有 ，侵权必究！
 * -----------------------------------
 */
package io.linfeng.modules.app.controller;

import io.linfeng.common.utils.Result;
import io.linfeng.modules.admin.entity.VipBenefitEntity;
import io.linfeng.modules.admin.service.VipBenefitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 会员权益
 *
 * @author Pity
 * @email linfengtech002@163.com
 * @date 2023-12-11 22:51:19
 */
@RestController
@RequestMapping("app/vipbenefit")
@Api(tags = "用户端——会员权益")
public class AppVipBenefitController {

    @Autowired
    private VipBenefitService vipBenefitService;

    @GetMapping("/getList")
    @ApiOperation("会员权益列表")
    public Result<List<VipBenefitEntity>> list(){
        List<VipBenefitEntity> result = vipBenefitService.getList();
        return new Result<List<VipBenefitEntity>>().ok(result);
    }


}
